using Engine;

public class TimePeriod
{
    private double _seconds;

    public int Hours
    {
        get { return _seconds / 3600; }
        set
        {
            _seconds = value * 3600;
        }
    }
}

namespace ConsoleApplication1
{
    class Program 
    {
        static void Test()
        {
            TimePeriod t = new TimePeriod();
            // The property assignment causes the 'set' accessor to be called.
            t.Hours = 24;

            int i = t.Hours;
            if(i == 24)
            {
                RConsole.PrintLine("test property success");
            }
            else
            {
                RConsole.PrintLine("test property failed");
            }
            
        }
        
    }
}